package com.fh.wanandroid.di.component;

import com.fh.wanandroid.app.MyApplication;
import com.fh.wanandroid.di.module.AppModule;

import javax.inject.Singleton;

import dagger.Component;
import dagger.android.AndroidInjectionModule;
import dagger.android.support.AndroidSupportInjectionModule;

@Singleton
@Component(modules = {AndroidInjectionModule.class,
        AndroidSupportInjectionModule.class,
        AppModule.class
      })
public interface AppComponent {

    /**
     * 注入WMyApplication实例
     *
     */
    void inject(MyApplication myApplication);

    /**
     * 提供App的Context
     *
     * @return GeeksApp context
     */
    MyApplication getContext();

}